<template></template>

<script lang="ts" setup>
import socket from "@/socket";
const usersStore = useUsersStore();
const { name } = usersStore;
socket.emit("login", { name, isGroup: false });
socket.emit("users");
socket.on("users", (data) => {
  console.log(data);
  usersStore.addUsers(data);
});
</script>

<style lang="scss" scoped></style>
